import request from '@/utils/request'

// 查询推送表列表
export function listNotification (query) {
  return request({
    url: '/platform/notification/list',
    method: 'get',
    params: query
  })
}

// 查询推送表详细
export function getNotification (id) {
  return request({
    url: '/platform/notification/' + id,
    method: 'get'
  })
}

// 新增推送表
export function addNotification (data) {
  return request({
    url: '/platform/notification',
    method: 'post',
    data: data
  })
}

// 修改推送表
export function updateNotification (data) {
  return request({
    url: '/platform/notification',
    method: 'put',
    data: data
  })
}

// 删除推送表
export function delNotification (id) {
  return request({
    url: '/platform/notification/' + id,
    method: 'delete'
  })
}


// 导出推送表
export function exportNotification (query) {
  return request({
    url: '/platform/notification/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/platform/notification/getInitData/' + dictTypes,
    method: 'get'
  })
}
